package com.tangyuan.video.feign;

import com.tangyuan.dto.VideoPublisherDto;
import com.tangyuan.feignapis.video.IVideoCommentFeignClient;
import com.tangyuan.video.service.VideoCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class VideoCommentFeignClient implements IVideoCommentFeignClient {

    @Autowired
    private VideoCommentService videoCommentService;

    @PostMapping("/feignApi/videoComment/updateVideoCommentMessage")
    public void updateVideoCommentMessage(@RequestBody VideoPublisherDto videoPublisherDto){
        videoCommentService.updateVideoCommentMessage(videoPublisherDto);
    }
}
